<template>
  <div>
    <el-row>
      <el-col>
        <el-form :inline="true" :model="search">
          <el-form-item :label="this.$t('keyword')">
            <el-input v-model="search.name" :placeholder="this.$t('searchKeyword')" clearable />
          </el-form-item>
          <el-form-item>
            <el-button type="primary" icon="el-icon-search" @click="doSearch">{{ this.$t('search') }}</el-button>
          </el-form-item>
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  data() {
    return {
      search: {}
    }
  },
  methods: {
    doSearch() {
      this.$emit('doSearch', this.search)
    }
  }
}
</script>
<style lang="scss" scoped>
@import "~@/assets/styles/defaultStyle.scss";
</style>
<style lang="scss" scoped>
.el-form-item {
  margin-bottom: 0;
}
</style>
